package com.initialize.commom.config.system;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: jane
 * Date: 2019/12/16
 * Time: 下午5:29
 * To change this template use File | Settings | File Templates.
 * Description: 系统的相关配置
 */
@Component
public class SiteConfig {

    /**
     * 是否开启开发模式
     *
     * 1. 开启后会打印详细的报错信息
     * 2. 关闭后则只打印简略的报错信息
     */
    public static boolean FLAG;


    @Value("${test.flag}")
    public void setFLAG(boolean FLAG) {
        SiteConfig.FLAG = FLAG;
    }
}